// 试验箱监控曲线配置
import AbilityList from './deviceAbility.js'
const lineColorConfig = {
  labCurTemp: '#ca3438',
  labTarTemp: '#f7b500',
  humiCurValue: '#e180f7',
  labTarHumi: '#2a4fff',
  pressureCurValue: '#f66e3c',
  pressureTarValue: '#7e75e3',
  labCurTempAexp: '#006dff',
  labSampleCurTemp: '#5b76ff',
  labHexpCurTemp: '#0efdf0',
  labHexpTarTemp: '#ff4c4c',
  labLexpCurTemp: '#08d9ff',
  labLexpTarTemp: '#08d400',
  saturateTempCurValue: '#ef71ff',
  saturateTempTarValue: '#006dff',
  // 以下颜色需调整
  leftLabCurTemp: '#f7b500',
  leftLabCurHumi: '#e180f7',
  rightLabCurTemp: '#2a4fff',
  rightLabCurHumi: '#f66e3c',
  leftLabTarTemp: '#7e75e3',
  leftLabTarHumi: '#006dff',
  rightLabTarTemp: '#ff4c4c',
  rightLabTarHumi: '#08d400',
  freezeLabCurTemp: '#ca3438',
  waterBoxCurTemp: '#f7b500',
  dripTrayCurTemp: '#e180f7',
  labCurRainfall: '#2a4fff',
  curIceThickness: '#f66e3c',
  waterBoxTarTemp: '#006dff',
  labTarRainfall: '#ff4c4c',
  labTarTemp: '#7e75e3',
  labCurTemp: '#ca3438',

  labTarHumi: '#e180f7',
  labCurHumi: '#2a4fff',
  labCurPressure: '#f66e3c',
  labTarPressure: '#7e75e3',
  labTarNitrogenDioxide: '#7e75e3',
  labCurNitrogenDioxide: '#006dff',
  labTarSulfurDioxide: '#004c4c',
  labCurSulfurDioxide: '#a8a400',
  labTarHydrogenSulfide: '#c00018',
  labCurHydrogenSulfide: '#f7c500',
  labTarChlorine: '#a5673f',
  labCurChlorine: '#e03997',
  labTarCompressedAir: '#0081ff',
  labCurCompressedAir: '#1cbbb4'
}
const TLineList = []
setBoxLineList(AbilityList.TBoxAbilityList, TLineList)

const THLineList = []
setBoxLineList(AbilityList.THBoxAbilityList, THLineList)

const THPLineList = []
setBoxLineList(AbilityList.THPBoxAbilityList, THPLineList)

const TPLineList = []
setBoxLineList(AbilityList.TPBoxAbilityList, TPLineList)

const TShockLineList = []
setBoxLineList(AbilityList.TShockBoxAbilityList, TShockLineList)

const saltSprayLineList = []
setBoxLineList(AbilityList.saltSprayBoxAbilityList, saltSprayLineList)

// const gzcnThermalShockLineList = []
// setBoxLineList(gzcnThermalShockBoxAbilityList, gzcnThermalShockLineList)

// const gzcnFreezeLineList = []
// setBoxLineList(gzcnFreezeBoxAbilityList, gzcnFreezeLineList)

// const votechGasattackBoxList = []
// setBoxLineList(votechGasattackBoxAbilityList, votechGasattackBoxList)

// 设置试验箱线列表
function setBoxLineList(boxAbilityList, LineList) {
  for (const item of boxAbilityList) {
    const data = JSON.parse(JSON.stringify(item))
    data['color'] = lineColorConfig[data.dataName]
    LineList.push(data)
  }
}

const box1C01LineList = THLineList
const box1D01LineList = TLineList
const box1E01LineList = TLineList
const box1F01LineList = TShockLineList
const box1G01LineList = TShockLineList
const box1H01LineList = THLineList
const box1I01LineList = TLineList
const box1J01LineList = TShockLineList
const box1K01LineList = THPLineList

export default {
  box1C01LineList,
  box1D01LineList,
  box1E01LineList,
  box1F01LineList,
  box1G01LineList,
  box1H01LineList,
  box1I01LineList,
  box1J01LineList,
  box1K01LineList
}
